#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.shortcuts import render

# Create your views here.

def index(request):
    return render(request,'index.html')

def m1(request):
    #传递字符串到模型页面
    st="这是从后台控制端向展示页面发出的内容"
    return render(request,'m1.html',{'st': st})

def m2(request):
    #传递列表到模型页面
    Tu=["历史","math","语文"]
    return render(request,'m2.html',{'Tu': Tu})


def m3(request):
    #传递字典到模型页面
    dr={'class':"历史",'score':20}
    return render(request,'m3.html',{'dr': dr})
